package cn.yyj.springsecurity02.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    @RequestMapping("/index")
    public String index(){
        System.out.println("index.....");
        return "redirect:/index.html";
    }

    @RequestMapping("/error1")
    public String error(){
        System.out.println("error.....");
        return "redirect:/error.html";
    }
}